package com.sptpc.practice.service;

import com.sptpc.practice.error.BusinessException;
import com.sptpc.practice.service.model.UserModel;

import java.util.List;

public interface UserService {

    //通过用户id获取用户对象
    UserModel getUserById(Integer id);

    void register(UserModel userModel) throws BusinessException;

    /*
    telephone:用户注册手机号
    password:用户加密后的密码
     */
    UserModel validateLogin(String telephone,String encrptPassword) throws BusinessException;

    List<UserModel> listUser();
}
